package cc.comac.mom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipPatrolCheckWorkOrderItemService;
import cc.comac.mom.bean.EquipPatrolCheckWorkOrderItem;
import cc.comac.mom.bean.EquipPatrolCheckWorkOrderItemBean;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.datahandlers.entity.EquipPatrolCheckWorkOrderItemDataHandler;
import cc.comac.mom.util.ResultBean;

@Service
@RestController
public class EquipPatrolCheckWorkOrderItemServiceImpl implements EquipPatrolCheckWorkOrderItemService{

	@Autowired
	private EquipPatrolCheckWorkOrderItemDataHandler equipPatrolCheckWorkOrderItemDataHandler;
	@Override
	public ResultBean deleteBatch(@RequestBody List<Long> ids) {
		// TODO Auto-generated method stub
		return equipPatrolCheckWorkOrderItemDataHandler.deleteBatch(ids);
	}

	@Override
	public ResultBean planExecute(@RequestBody EquipPatrolCheckWorkOrderItem obj) {
		// TODO Auto-generated method stub
		return equipPatrolCheckWorkOrderItemDataHandler.planExecute(obj);
	}

	@Override
	public ResultBean confirm(@RequestBody List<EquipPatrolCheckWorkOrderItem> obj) {
		// TODO Auto-generated method stub
		return equipPatrolCheckWorkOrderItemDataHandler.confirm(obj);
	}

	@Override
	public ResultBean selectByFields(@RequestBody EquipPatrolCheckWorkOrderItemBean obj) {
		ResultBean resultBean = new ResultBean(true);
		ResultDev selectByFields = equipPatrolCheckWorkOrderItemDataHandler.selectByFields(obj);
		resultBean.setObject(selectByFields);
		return resultBean;
	}

}
